const mongoConenct = require('../index');

const CatSchema = mongoConenct.Schema({
  name: String,
  age: Number
});
// CatSchema.methods.speak = function () {
//   const greeting = this.name ? 'Meow name is ' + this.name : "I don't have a name";
//   console.log(greeting);
// };

module.exports = mongoConenct.model('cats', CatSchema);
